export default {
    namespaced:true,
    state: {

        name:"money",

    },
    //状态派生
    getters: {

        getName(state){
            return "【"+state.name+"】";
        }
    },
    //修改状态
    mutations: {
        setName(state,val){
            state.name=val
        }
    },

    actions: {
        setName(c){

            console.log("setName le ba")
            setTimeout(()=>{

                c.commit("setName","我是actons里的异步提交了吧");
            },1000)
        }
    },


}